﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IHISCETeim.DAL;
using IHISCETeim.Model;
using IHISCETeim.Library;
using System.Data;

namespace IHISCETeim.BLL
{
    public class VIPExchangePartController
    {
        public static int Add(VIPExchangePartInfo obj)
        {
            return VIPExchangePartDAL.Add(obj);
        }
        public static int AddLastPrice(VIPExchangePartLastPriceInfo obj)
        {
            return VIPExchangePartDAL.AddLastPrice(obj);
        }
        public static bool Delete(int ID)
        {
            return VIPExchangePartDAL.Delete(ID);
        }
        public static DataTable GetByWhere(string WhereSql)
        {
            return VIPExchangePartDAL.GetByWhere(WhereSql);
        }
        public static VIPExchangePartInfo GetList(int ID)
        {
            return  CBO.FillObject<VIPExchangePartInfo>( VIPExchangePartDAL.GetList(ID));
        }
        public static   List<VIPExchangePartLastPriceInfo> GetListLastPrice(int UserID)
        {
            return  CBO.FillCollection<VIPExchangePartLastPriceInfo>( VIPExchangePartDAL.GetListLastPrice(UserID));
        }
        public static bool Update(VIPExchangePartInfo obj)
        {
            return VIPExchangePartDAL.Update(obj);
        }
        public static bool UpdateLastPrice(VIPExchangePartLastPriceInfo obj)
        {
            return VIPExchangePartDAL.UpdateLastPrice(obj);
        }
    }
}
